﻿@model WidgetHelper
<div>
   @Html.Global("RES_SUBSCRIPTION_URL"):
</div>
<div>
    @Ajax.Dna().TextBox(Model.GenerateFieldID("Url")).Value(Model.GetString("Url")).GetHtml()
</div>
<div>
    @(
 Ajax.Dna().ListBox(Model.GenerateFieldID("Layout"))
 .Options(opts =>
 {
     opts.IsInlineMode = true;
 })
 .HtmlAttributes(new { style = "width:auto;height:150px; border:none;" })
         .Select(Model.GetString("Layout"))
 .ItemHtmlAttributes(new { style = "float:left;width:120px;padding-top:3px;padding-right:3px;margin-right:2px;" })
    .Items(items =>
    {
        items.Add(new NavigableData()
        {
            ToolTip = "Title",
            Value = "TitleLayout",
            ImageUrl = Url.Content("~/content/images/img_title_layout.jpg")
        });
        items.Add(new NavigableData()
        {
            ToolTip = "Summary",
            Value = "SummaryLayout",
            ImageUrl = Url.Content("~/content/images/img_summary_layout.jpg")
        });
        items.Add(new NavigableData()
        {
            ToolTip = "Detail",
            Value = "DetailLayout",
            ImageUrl = Url.Content("~/content/images/img_detail_layout.jpg")
        });
        items.Add(new NavigableData()
        {
            ToolTip = "Accordion",
            Value = "AccordionLayout",
            ImageUrl = Url.Content("~/content/images/img_accordion_layout.jpg")
        });
    })
    .GetHtml()
    )
</div>
<div>
    <div>
        @Html.Global("publishing", "DisplayRows")</div>
    <div>
        @Ajax.Dna().Number(Model.GenerateFieldID("Rows"), Model.GetInt("Rows")).GetHtml()
    </div>
</div>
<div>
    <div>
        @Html.Global("publishing", "DisplayTextLen")</div>
    <div>
        @Ajax.Dna().Number(Model.GenerateFieldID("TextLen"), Model.GetInt("TextLen")).GetHtml()
    </div>
    <div>
        (@Html.Global("publishing", "DisplayTextLenTip"))</div>
</div>

<div style="overflow: hidden;">
    @Ajax.Dna().Checkbox(Model.GenerateFieldID("ShowAuthor"), "Show post user", Model.GetBool("ShowAuthor")).GetHtml()
</div>
<div style="clear: left; overflow: hidden;">
    @Ajax.Dna().Checkbox(Model.GenerateFieldID("ShowDate"), "Show post date",Model.GetBool("ShowDate")).GetHtml()
    <span style="clear: left;"></span>
</div>
<div style="clear: left; overflow: hidden;">
    @Ajax.Dna().Checkbox(Model.GenerateFieldID("ShowFeedInfo"), "Show channel info",Model.GetBool("ShowFeedInfo")).GetHtml()
    <span style="clear: left;"></span>
</div>
